package com.shioirikukuri.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 会员实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserMember {
	private Long id;              // 会员ID
	private Long userId;          // 关联的用户ID
	private Long levelId;         // 会员等级ID，关联 MemberLevel
	private Double totalPoints;  // 累计积分
	private Double totalSpent;    // 累计消费金额
	private Double balance;      // 会员余额
	private LocalDateTime createdAt; // 成为会员的时间
}